package com.heima.article.feign;


import com.heima.article.dto.UnlikesBehaviorDto;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import com.heima.article.dto.ArticleInfoDto;
import com.heima.article.dto.BehaviorDto;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {
    /**
     * 查询标记：喜欢 不喜欢 收藏 关注
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/behavior/all")
    public ResponseResult<BehaviorDto> loadArticleBehavior(@RequestBody ArticleInfoDto dto);

    /**
     * @param dto
     * @return
     */

    @PostMapping("/api/v1/unlikes_behavior")
    ResponseResult<Integer> unlikesBehavior(@RequestBody UnlikesBehaviorDto dto);

}
